<template>
  <div id="app">
    <div class="login-container">
      <router-link to="login" tag="span">login</router-link>
      <router-link to="register" tag="span">register</router-link>
    </div>
    <router-view></router-view>
  </div>
</template>

<script>

</script>
<!--
scoped表示只能作用于当前组件
-->
<style lang="less" scoped>
  .login-container{
    display: flex;
    justify-content: center;
    padding-top: 10px;
    span{
      padding: 5px 10px;
      border-radius: 5px;
      font-size: 16px;
    }
  }
  .my-active,.my-exact-active{
    background: #007aff;
    font-weight: 800;
    color: white;

  }
</style>
